package com.javaee.service.doctor.impl;

import com.javaee.mapper.doctor.SelectMzghMapper;
import com.javaee.service.doctor.SelectMzghService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SelectMzghServiceImpl implements SelectMzghService {
    @Autowired
    private SelectMzghMapper selectMzghMapper;
    @Override
    public List<Map<String, Object>> findAll(int pageNum, int pageSize,int id){
        return selectMzghMapper.findAllWithMzgh(pageNum,pageSize,id);
    }
    @Override
    public void updateStatus(int id, String status){
        selectMzghMapper.updateStatus(id,status);
    }
    @Override
    public List<Map<String, Object>> findByDetailAndYyrq(String detail,String yyrq,int id,int pageNum, int pageSize) {
        return selectMzghMapper.findByDetailAndYyrq(detail, yyrq,id,pageNum,pageSize);
    }
    @Override
    public int selectCount() {
        return selectMzghMapper.selectCount();
    }

}
